package com.park.service.impl.user;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.user.PermissionModel;
import com.park.client.service.user.PermissionService;
import com.park.dao.user.PermissionMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("permissionService")
public class PermissionServiceImpl  extends BaseServiceImpl<PermissionModel> implements PermissionService{

	@Autowired
	private PermissionMapper permissionMapper;
	
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return permissionMapper.deleteByPrimaryKey(id) ==1;
	}

	@Override
	public boolean insertSelective(PermissionModel record) {
		return permissionMapper.insertSelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKey(PermissionModel record) {
		return permissionMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<PermissionModel> selectPagination(PermissionModel t) {
		return permissionMapper.selectPagination(t);
	}

	@Override
	public Integer selectTotal(PermissionModel t) {
		return permissionMapper.selectTotal(t);
	}

	@Override
	public boolean updateByPrimaryKeySelective(PermissionModel record) {
		return permissionMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public PermissionModel selectByModel(PermissionModel t) {
		return permissionMapper.selectByModel(t);
	}
	

}
